package com.hoshiicloud.marketmanagement.feign;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.goods.entity.sku.ProductManage;
import com.hoshiicloud.goods.param.sku.ProductManageQueryParam;
import com.hoshiicloud.marketmanagement.feign.hystrix.HystrixGoodsFeignFallback;
import java.util.List;
import javax.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author MarkerCCC
 * @date 2019-09-18 - 09:54
 */
@FeignClient(name = "hoshiicloud-goods", fallback = HystrixGoodsFeignFallback.class)
public interface GoodsService {

    @PostMapping("/goods/product-manage/query/page")
    Response page(@RequestBody @Valid ProductManageQueryParam param);

    @PostMapping("/goods/product-manage/query/list")
    Response<List<ProductManage>> list(@RequestBody ProductManageQueryParam param);
}
